package cn.com.miao.lynx.common.core.constant

import cn.com.miao.lynx.common.core.convert.AbstractEnumConverter
import cn.com.miao.lynx.common.core.convert.PersistEnum2DB

/**
 * LogType1
 * @title: LogType1
 * @description:
 * @author: dengmiao
 * @create: 2019-12-27 16:39
 **/
enum class LogType(var value: Int, var title: String): PersistEnum2DB<Int> {

    NORMAL(1, "系统日志") {
        override fun getData(): Int {
            return this.value
        }
    },
    SCHEDULE(2, "任务调度") {
        override fun getData(): Int {
            return this.value
        }
    };

    abstract override fun getData(): Int

    class Converter : AbstractEnumConverter<LogType, Int>(LogType::class.java) {}
}
